package cn.edu.seu.ssny.service;

import cn.edu.seu.ssny.entity.Project;
import cn.edu.seu.ssny.entity.StatisticsPowercostRateType;
import cn.edu.seu.ssny.service.support.IBaseService;

import java.util.List;

public interface IStatisticsPowercostRateTypeService extends IBaseService<StatisticsPowercostRateType, Integer> {

    /**
     * <功能描述:
     * 根据项目和分析类别名称查找
     *
     * @param project
     * @param name
     * @return
     */
    StatisticsPowercostRateType findByProjectAndName(Project project, String name);

    /**
     * <功能描述:
     * 根据项目查找
     *
     * @param project
     * @return
     */
    List<StatisticsPowercostRateType> findByProject(Project project);
}
